
<div *ngIf="shoppingCart">
    <h2><span jhiTranslate="bookstoreApp.shoppingCart.detail.title">Shopping Cart</span> {{shoppingCart.id}}</h2>
    <hr>
    <jhi-alert-error></jhi-alert-error>
    <dl class="row-md jh-entity-details">
        <dt><span jhiTranslate="bookstoreApp.shoppingCart.userId">User Id</span></dt>
        <dd>
            <span>{{shoppingCart.userId}}</span>
        </dd>
        <dt><span jhiTranslate="bookstoreApp.shoppingCart.bookId">Book Id</span></dt>
        <dd>
            <span>{{shoppingCart.bookId}}</span>
        </dd>
        <dt><span jhiTranslate="bookstoreApp.shoppingCart.bookPrice">Book Price</span></dt>
        <dd>
            <span>{{shoppingCart.bookPrice}}</span>
        </dd>
        <dt><span jhiTranslate="bookstoreApp.shoppingCart.jhiNumber">Jhi Number</span></dt>
        <dd>
            <span>{{shoppingCart.jhiNumber}}</span>
        </dd>
        <dt><span jhiTranslate="bookstoreApp.shoppingCart.status">Status</span></dt>
        <dd>
            <span>{{shoppingCart.status}}</span>
        </dd>
        <dt><span jhiTranslate="bookstoreApp.shoppingCart.orderTime">Order Time</span></dt>
        <dd>
            <span>{{shoppingCart.orderTime | date:'medium'}}</span>
        </dd>
    </dl>

    <button type="submit"
            (click)="previousState()"
            class="btn btn-info">
        <span class="fa fa-arrow-left"></span>&nbsp;<span jhiTranslate="entity.action.back"> Back</span>
    </button>

    <button type="button"
            [routerLink]="['/', { outlets: { popup: 'shopping-cart/'+ shoppingCart.id + '/edit'} }]"
            replaceUrl="true"
            queryParamsHandling="merge"
            class="btn btn-primary">
        <span class="fa fa-pencil"></span>&nbsp;<span jhiTranslate="entity.action.edit"> Edit</span>
    </button>
</div>
